package com.zhz.model.employee;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhz.common.tool.mybatisplus.base.dal.entity.BasePO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 员工归档
 *
 * @author zhouhengzhe
 * @date 2023/3/21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@TableName(value = "em_archive")
public class EmployeeArchive extends BasePO {
    /**
     * 操作用户
     */
    @TableField(OP_USER)
    private String opUser;

    /**
     * 月份
     */
    @TableField(MONTH)
    private String month;

    /**
     * 企业ID
     */
    @TableField(COMPANY_ID)
    private String companyId;

    /**
     * 总人数
     */
    @TableField(TOTALS)
    private Integer totals;

    /**
     * 在职人数
     */
    @TableField(PAYROLLS)
    private Integer payrolls;

    /**
     * 离职人数
     */
    @TableField(DEPARTURES)
    private Integer departures;

    /**
     * 数据
     */
    @TableField(DATA)
    private String data;

    public static final String OP_USER = "op_user";

    public static final String MONTH = "month";

    public static final String COMPANY_ID = "company_id";

    public static final String TOTALS = "totals";

    public static final String PAYROLLS = "payrolls";

    public static final String DEPARTURES = "departures";

    public static final String DATA = "data";

}